// MyNumericBox.h: interface for the CMyNumericBox class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYNUMERICBOX_H__3094C147_5507_11D3_B429_00A0C9327ABA__INCLUDED_)
#define AFX_MYNUMERICBOX_H__3094C147_5507_11D3_B429_00A0C9327ABA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMyNumericBox  
{
public:
	static void DecrementRead();
	static char * GetCaption();
	void SetCaption(char *str);
	static BOOL ReadFromKeyboard(int & nResult, int nLow, 
        int nHigh, char * szInitialStr);
    static char * GetBuffer();
    static void SetButtonPressed(int =IDOK);

    // constructor destructor
	CMyNumericBox();
	virtual ~CMyNumericBox();
    friend BOOL CALLBACK Dlg_Proc (HWND hDlg, UINT uMsg,
        WPARAM wParam, LPARAM lParam);
    

    // data members
protected:
    static char *m_szCaption;
    static char m_szNumber[1024];
    static int m_nButtonPressed;
    // number of calls to 'ReadFromKeyboard' at the same time
    static int m_nReads; 
};

#endif // !defined(AFX_MYNUMERICBOX_H__3094C147_5507_11D3_B429_00A0C9327ABA__INCLUDED_)
